using System;
using Servlets.Api;

namespace Servlets.Exceptions
{
	public class DuplicateUrlMappingException : ServletException
	{
		public DuplicateUrlMappingException(string url, HttpMethod method) : base("The url '" +url + "' and HttpMethod '" + method +"' has already been mapped")
		{
		}
		
		public override HttpStatus StatusCode {
			get {
				return Servlets.Api.HttpStatus.STATUS_500_INTERNAL_SERVER_ERROR;
			}
		}
	}
}

